<h1>沿線から検索　&gt;&gt;　沿線を選択してください。</h1>
<p class="lead">全国の賃貸マンションを検索。全国のお部屋探しなら賃貸情報アパマンショップ！</p>

<form name="mainForm" method="get" action="{$url.list}">
	<input type="hidden" name="SrhKbn" value="{$request.SrhKbn}" />
	<input type="hidden" name="PlaceKbn" value="{$request.PlaceKbn}" />
	<input type="hidden" name="SrhType" value="{$request.SrhType}" />
	<input type="hidden" name="first_check" value="{$request.first_check}" />

{if $request.isSelectedPref == true}
	{foreach from=$request.PrefCd item=PrefCd name=loop}
	<input type="hidden" name="PrefCd[{$smarty.foreach.loop.index}]" value="{$PrefCd}" />
	{/foreach}
{else}
	<input type="hidden" name="PrefCd[]" value="" />
{/if}

	<!-- shopNewIndex -->
	<div id="shopNewIndex">

{* 都道府県毎にループ *}
{foreach from=$dispList key=prefCd item=pref}

		<!-- prefBlock -->
		<div class="prefBlock">
			<div class="h2Block">
				<h2><span>{$pref.PrefName}</span><label class="allSelect"><input type="checkbox" name="allselect" id="allselect" onclick="javascript:AllChecker(document.mainForm, '1', this.checked, '{$prefCd}');" />すべて選択</label></h2>
			</div>
			<div class="infoBlock">
				<div class="box01">
					<div class="boxInner">

						<!-- selectCategoryAnchor -->
						<div class="selectCategoryAnchor">
							<!-- innerBlock -->
							<div class="innerBlock01">
								<div class="innerBlock02">
									<ul>
	{* アンカー *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
										<li><a href="#{$prefCd}{$ensenKbn.EnsenKbn}">{$ensenKbn.EnsenKbnName}</a></li>
	{/foreach}
									</ul>
								</div>
							</div>
							<!-- /innerBlock -->
						</div>
						
	{* 沿線区分毎にループ *}
	{foreach from=$pref.EnsenKbnList item=ensenKbn}
						<!-- selectDetailBlock01 -->
						<div id="{$prefCd}{$ensenKbn.EnsenKbn}" class="selectDetailBlock01">
							<p class="title">{$ensenKbn.EnsenKbnName}</p>
							<!-- innerBlock01 -->
							<div class="innerBlock01">
								<!-- innerBlock02 -->
								<div class="innerBlock02">

		{* 沿線毎にループ *}
		{foreach from=$ensenKbn.RailList item=rail name=railLoop}
		    {if $smarty.foreach.railLoop.iteration % 3 == 1}
		    	{if $smarty.foreach.railLoop.iteration + 2 >= $smarty.foreach.railLoop.total}
									<ul class="last">
			    {else}
									<ul>
			    {/if}
		    {/if}

		    {if $rail.TENPO_COUNT == 0}
		    	{assign var="disabled" value=" disabled"}
		    {else}
		    	{assign var="disabled" value=""}
		    {/if}
										<li>
											<input type='checkbox' id="{$rail.TODOUFUKEN_CD}" name='RailCd[]' value='{$rail.TODOUFUKEN_CD}{$rail.ENSEN_CD}'{$disabled} {$rail.checked}>
											<a href="javascript:clickRail(document.mainForm, '{$rail.TODOUFUKEN_CD}{$rail.ENSEN_CD}')">{$rail.ENSEN_NAME}({$rail.TENPO_COUNT}店舗)</a>
										</li>

			{if $smarty.foreach.railLoop.iteration % 3 == 0 || $smarty.foreach.railLoop.last}
									</ul>
			{/if}
		{/foreach}
								</div>
								<!-- /innerBlock02 -->
							</div>
							<!-- /innerBlock01 -->
						</div>
						<!-- /selectDetailBlock01 -->
	{/foreach}
					</div>
				</div>
			</div>
		</div>
		<!-- /prefBlock -->
{/foreach}
		<!-- searchToResult02 -->
		<div id="searchToResult02">
			<!-- innerBlock01 -->
			<div class="innerBlock01">
				<div class="innerBlock02">
					<div class="innerBlock03">
						<p class="btn">
							<a href="javascript:SubmitRail(document.mainForm);">
								<img class="rollImg" id="imageField" src="{$apm.baseurl}images/search/common/btn_search.gif" alt="検索" />
							</a>
						</p>
					</div>
				</div>
			</div>
			<!-- /innerBlock01 -->
		</div>
		<!-- /searchToResult02 -->
		
		{* 2011/01/06 おまかせ物件探しバナー追加 *}
		<div>
			<a href="{$apm.baseurl}info/request" >
				<img src="/images/common/banner_request.gif" alt="かんたんリクエスト" />
			</a>
		</div>
		{* おまかせ物件探しバナー追加 END *}
		
	</div>
	<!-- /shopNewIndex -->
</form>